﻿using System;
using System.Collections.Generic;
using KZ.Utilities;

namespace KZ.Express.H.ENT
{
    public class ZoneENT : BaseENT
    {
        [Output]
        public int ZoneID { get; set; }

        [Required(ErrorMessage = "Bạn phải nhập mã zone")]
        public string ZoneCode { get; set; }

        [Required(ErrorMessage = "Bạn phải nhập tên zone")]
        public string ZoneName { get; set; }

        [NotInsertUpdate]
        public bool IsDeleted { get; set; }

        public int? CreatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? CreatedDate { get; set; }

        public int? UpdatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? UpdatedDate { get; set; }

        [NotInsertUpdate]
        public List<ZoneDetailENT> ZoneDetails { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Zones"; } }

        [NotInsertUpdate]
        public override string PrimaryKey { get { return "ZoneID"; } }

        [NotInsertUpdate]
        public override string PrimaryDescription { get { return "ZoneCode"; } }

        /// <summary>
        /// proc_Zone_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_Zone_Insert"; } }

        /// <summary>
        /// proc_Zone_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_Zone_Update"; } }

        [NotInsertUpdate]
        public override string DeleteProcedure { get { return "proc_Zone_Delete"; } }

        /// <summary>
        /// proc_Zone_Select
        /// </summary>
        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_Zone_Select"; } }
    }
}